-- GENERATED SPELL FOR [Dark Rune Acolyte] --


function spell0_33110(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(62334,pUnit)
pUnit:RegisterEvent('Sorts_33110', 2000, 1)
end

function spell1_33110(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(62442,pUnit)
pUnit:RegisterEvent('Sorts_33110', 2000, 1)
end

function spell2_33110(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(62335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33110', 1500, 1)
end

function spell3_33110(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(62443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33110', 1500, 1)
end

function spell4_33110(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(62333,pUnit)
pUnit:RegisterEvent('Sorts_33110', 15000, 1)
end

function spell5_33110(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(62441,pUnit)
pUnit:RegisterEvent('Sorts_33110', 15000, 1)
end

function Sorts_33110(pUnit, Event)
local choix_sorts_33110 = math.random(0, 5)
if choix_sorts_33110 == 0 then
pUnit:RegisterEvent('spell0_33110', 1, 1)
end
if choix_sorts_33110 == 1 then
pUnit:RegisterEvent('spell1_33110', 1, 1)
end
if choix_sorts_33110 == 2 then
pUnit:RegisterEvent('spell2_33110', 1, 1)
end
if choix_sorts_33110 == 3 then
pUnit:RegisterEvent('spell3_33110', 1, 1)
end
if choix_sorts_33110 == 4 then
pUnit:RegisterEvent('spell4_33110', 1, 1)
end
if choix_sorts_33110 == 5 then
pUnit:RegisterEvent('spell5_33110', 1, 1)
end
end

function mob33110_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33110', math.random(1500, 3000), 1)
end

function mob33110_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33110_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33110_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33110, 1, 'mob33110_Action')
RegisterUnitEvent(33110, 2, 'mob33110_Leave')
RegisterUnitEvent(33110, 3, 'mob33110_Kill')
RegisterUnitEvent(33110, 4, 'mob33110_Die')
